package com.loongtech.bi.advertisment.model;

import com.loongtech.core.util.Time;

import java.util.Date;

public class TotalPayData2 {
    private String tcreatedate;
    private String logdate;
    private String url;
    private long totalpay;
    private String advPosition;
    private String channelName;
    private String agent;
    private int newAccount;

    public String getKey() {
        return tcreatedate + "-" + url;
    }

    public boolean isNew() {
        return logdate.equals(tcreatedate);
    }

    public int getInterval() {
        return Time.getInterval(new Date(Time.formatDateStr(tcreatedate, Time.TIMEPATTERN_SIMPLE)), new Date(Time.formatDateStr(logdate, Time.TIMEPATTERN_SIMPLE)));
    }

    public String getTcreatedate() {
        return tcreatedate;
    }

    public void setTcreatedate(String tcreatedate) {
        this.tcreatedate = tcreatedate;
    }

    public String getLogdate() {
        return logdate;
    }

    public void setLogdate(String logdate) {
        this.logdate = logdate;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getTotalpay() {
        return totalpay;
    }

    public void setTotalpay(long totalpay) {
        this.totalpay = totalpay;
    }

    public int getNewAccount() {
        return newAccount;
    }

    public void setNewAccount(int newAccount) {
        this.newAccount = newAccount;
    }

    public String getAdvPosition() {
        return advPosition;
    }

    public void setAdvPosition(String advPosition) {
        this.advPosition = advPosition;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }
}
